package com.example.collections;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

/**
 * @author csp 2020-12-24
 */
public class ListTest {
    @Test
    public void test(){
        List list = new ArrayList();
        list.add(1);
        List list1 = list.subList(0, 100);
    }

    /**
     *
     *
     * @author csp 2020/12/24 14:32
     * @param c:
     * @param b:
     * @return: void
     **/
    public void test1(int c,int b){
        int[] a = new int[10];
                 a[0] = 0;
                a[1] = 1;
                a[2] = 2;
                a[3] = 3;
                 System.arraycopy(a, 2, a, 3, 3);
                for (int i = 0; i < a.length; i++) {
                         System.out.println(a[i]);
                    }
    }
    @Test
    public void list_watch(){
        ArrayList<String> objects = new ArrayList<>();
        objects.add("1");
        objects.add("1");
        objects.add("1");
        System.out.println(objects);
    }
    @Test
    public void add(){
        Integer a = null;
        Integer b = null;
    }
}
